dae8dd45ff125536dd65e4480f81939117be5f57,ftest/src/test/java/org/searchisko/ftest/rest/CustomTagRestServiceTest.java,CustomTagRestServiceTest,assertNotAuthenticated,#,138
Before Change
// POST /rating/existing-id
given().contentType(ContentType.JSON).pathParam("id", contentIdToTag).content("{ \"tag\" : \"tag1\"}").expect()
.statusCode(expStatus).header("WWW-Authenticate", nullValue()).log().ifValidationFails().when()
.post(new URL(context, TAGGING_REST_API).toExternalForm());
// DELETE concrete label
given().contentType(ContentType.JSON).pathParam("id", contentIdToTag).content("{ \"tag\" : \"tag1\"}").expect()
.log().ifValidationFails().statusCode(expStatus).header("WWW-Authenticate", nullValue())
.body(is("Required authorization {0}.")).when()
.delete(new URL(context, TAGGING_REST_API_DELETE_ALL).toExternalForm());
// DELETE _all
given().contentType(ContentType.JSON).pathParam("id", contentIdToTag).expect().log().ifValidationFails()
After Change
// POST /rating/existing-id
given().contentType(ContentType.JSON).pathParam("id", contentId1ToTag).content("{ \"tag\" : \"tag1\"}").expect()
.statusCode(expStatus).header("WWW-Authenticate", nullValue()).log().ifValidationFails().when()
.post(new URL(context, TAGGING_REST_API).toExternalForm());
// DELETE concrete label
given().contentType(ContentType.JSON).pathParam("id", contentId1ToTag).content("{ \"tag\" : \"tag1\"}").expect()